/**
 * URLFetchException.java
 * 
 * FreeZzaph is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * FreeZzaph is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; see the file COPYING.
 */
package freezzaph.exceptions;

/**
 * <p>Exception that can be thrown by plugins to
 * signal that an irrecoverable error occured.
 * Throwing this exception should be the last
 * resort, attempting to gracefully
 * degrade/recover is desirable.
 * 
 * <p>Throwing this exception will cause the
 * application to print the given message and then
 * abort its current operation.
 * 
 * @author FreeZzaph
 */
public class PluginException extends RuntimeException {
	
	/**
	 * Construct an exception with the given
	 * detail message.
	 *  
	 * @param message the message that the application
	 * will use to inform the user why the current
	 * operation was aborted by the plugin.
	 */
	public PluginException(String message) {
		super(message);
	}
	
	/**
	 * Construct an exception with the given
	 * detail message and cause of the exception.
	 *  
	 * @param message the message that the application
	 * will use to inform the user why the current
	 * operation was aborted by the plugin.
	 * @param cause the reason why this exception
	 * was thrown. Currently ignored by the application,
	 * but should be used wherever applicable, since this
	 * may change later.
	 */
	public PluginException(String message, Throwable cause) {
		super(message, cause);
	}

}
